import java.net.UnknownHostException;
import chatGUI.*;
import chatController.*;
import chatNI.*;



/**
 * Main Program = CHAT SYSTEM.
 * Allow P2P communications between users on a local network.
 * @author Bazile - Gaye
 */
public class ChatSystem {

    /**
     * main program.
     * @param args
     */
    public static void main(String[] args) {

		try {

			// Création des Eléments du ChatSystem
			ChatController cc = new ChatController();
			ChatNI cni = new ChatNI(cc);
			cc.setChatni(cni);
			ChatGUI cgui = new ChatGUI(cc);
			cc.setChatgui(cgui);


		} catch (UnknownHostException e) {
			System.out.println("Erreur dans le lancement du ChatSystem!!!");
		}

	}
}

